package com.eight.cloud.mybatisflex.handle.key.generator;

import com.mybatisflex.core.keygen.IKeyGenerator;

import java.util.UUID;

/**
 * @ClassName: UUIDKeyGenerator
 * @Author: TXC
 * @Date: 2025-09-15 16:48
 **/
public class UUIDKeyGenerator implements IKeyGenerator {
    @Override
    public Object generate(Object entity, String keyColumn) {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }
}
